<%@page import="com.pojo.basic.Module"%>
<%@page import="java.util.List"%>
<%@page import="com.pojo.system.PSWD"%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/default.jsp"  %>
<%
	List<Module> list = (List<Module>)request.getAttribute("list");
	if(list == null ){
		response.sendRedirect("moduleAction.findAllModuleByRoot.action");
	}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>【模組設定】權限設定</title>
<link rel="stylesheet" href="/Sunlike/extjs/resources/css/ext-all.css" type="text/css"></link>
<link rel="stylesheet" href="/Sunlike/css/toolbar.css" type="text/css"></link>
<script type="text/javascript" src="/Sunlike/extjs/adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="/Sunlike/extjs/ext-all-debug.js"></script>
<script type="text/javascript"  src="/Sunlike/js/Setting/toolbar.js"></script>
<style type="text/css">
<!--
.style1 {color: white}
.style2 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
}
.style5 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; }
.style7 {font-family: Arial, Helvetica, sans-serif; font-size: 12; font-weight; }
a{text-decoration:none;color:black;};
-->
</style>
</head>
<body>
<div id='toolbarspan'></div>
<table width="100%" border="0" align="center">
<tr><td align="center"><SPAN> <b> <font  size="3">系統設定:模組設定:權限設定</font></b></SPAN> </td></tr>
</table>	
<form name="main_type_form" method="post" action="/eDocument/Modular/main_job_type/index.jsp">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tbody><tr>
    <td align="left"></td>
	<td align="right"><span>
		<img src="/Sunlike/images/arrow_r_r_small.gif" width="9" height="9">					
		排序 		
		&nbsp;&nbsp;	 
		<img src="/Sunlike/images/arrow_r_r_small.gif" width="9" height="9">						
		修改紀錄
		&nbsp;&nbsp;	 
	</span></td>
  </tr></tbody>
</table>
<table width="100%" cellspacing="1" cellpadding="4" rules="groups" align="center" border="1">
    <tbody> 
    <tr bgcolor="#ECE8D8">
      <td width="4%" align="center"><span>No.</span></td>
      <td width="10%" align="center"><span>模組</span></td>
      <td>&nbsp;</td>
      <td align="left" valign="top"><span>功能</span></td>
    </tr>
	</tbody>
	<%
    if(list != null){for(int  i  =  0 ; i  <  list.size() ; i++){
    	Module  module = (Module) list.get(i);
    	String color= "#ECE8D8";
    	if(i%2==0){
    		color="#FFFFFF";
    	}
    %>
    <tbody> 
    <tr bgcolor="<%= color %>">
      <td align="center"><span><%= i+1 %><b>.</b></span></td> 
      <td colspan="2" align="left"><span>&nbsp;&nbsp;&nbsp;&nbsp;<font><font  style="font-size:16px;font-family:MSYHBD;"><%= module.getName() %> </font></font></span></td>      
      <td width="10%" align="left" valign="top"><span><a href="moduleAction.initModulePermissionData.action?moduleVo.id=<%= module.getId() %>"><img src="/Sunlike/images/modify.bmp" width="20" height="20" alt="修改模組權限" border="0"></a> </span></td>
    </tr>
    </tbody> 
    
	<%
     }}
     %>
</table>
</form>
</body>
</html>